package com.szeastroc.core.base.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * 被继承的Mapper，一般业务Mapper继承它
 * @param <T>
 *
 */
public interface BaseMapper<T> extends Mapper<T>, MySqlMapper<T>{

    // 通用接口，查询某表局部字段
    @Select("select ${fields} from ${tableName} ")
    List<T> selectPageFields(@Param("fields") String fields, @Param("tableName") String tableName);
}
